package o;

import android.view.ViewGroup;
import androidx.annotation.NonNull;
import java.util.ArrayList;
import java.util.List;

public abstract class bhh extends PagerAdapter {
    private final dey ˎ;
    private List<bgz> ॱ = new ArrayList();

    public abstract bgz ॱ(int i);

    public bhh(dey o_dey) {
        this.ˎ = o_dey;
    }

    /* JADX WARNING: inconsistent code. */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    @androidx.annotation.NonNull
    public java.lang.Object instantiateItem(@androidx.annotation.NonNull android.view.ViewGroup r5, int r6) {
        /*
        r4 = this;
        r3 = 0;
        r0 = r4.ॱ;
        r0 = r0.size();
        if (r0 <= r6) goto L_0x0014;
    L_0x0009:
        r0 = r4.ॱ;
        r0 = r0.get(r6);
        r0 = (o.bgz) r0;
        if (r0 == 0) goto L_0x0014;
    L_0x0013:
        return r0;
    L_0x0014:
        r0 = r4.ॱ(r6);
    L_0x0018:
        r1 = r4.ॱ;
        r1 = r1.size();
        if (r1 > r6) goto L_0x0026;
    L_0x0020:
        r1 = r4.ॱ;
        r1.add(r3);
        goto L_0x0018;
    L_0x0026:
        r1 = r4.ॱ;
        r1.set(r6, r0);
        r1 = r4.ˎ;
        r2 = r5.getId();
        r1.ˎ(r2, r0, r3);
        goto L_0x0013;
        */
        throw new UnsupportedOperationException("Method not decompiled: o.bhh.ॱ(android.view.ViewGroup, int):java.lang.Object");
    }

    public void destroyItem(@NonNull ViewGroup viewGroup, int i, @NonNull Object obj) {
        bgz o_bgz = (bgz) obj;
        this.ॱ.set(i, null);
        this.ˎ.ॱ(o_bgz);
    }
}
